package org.example.service;

import org.example.bean.Address;

import java.util.List;

public interface AddressService {
    //添加地址
    public Address addAddress(Address address);
    //根据状态查找地址
    public List<Address> getAddressesByStatus(Integer address_status);
    //根据索引更新为是否是默认地址
    public boolean updateIsDefault(Integer address_id,Integer is_default);
    //根据索引改变地址的状态
    public boolean updateAddressStatus(Integer address_id,Integer address_status);

    //根据索引修改地址信息
    public boolean updateAddress(Integer address_id,Address address);

    //查找默认地址的地址信息
    public Address getDefaultAddress(Integer is_default,Integer address_status);

}
